package com.example.entity;



// [隐式] 有参构造自动注入 不需要写@Autowired 注解

public class Person3 {

    

    private Dog dog;

    private Cat cat;

    private String name;

    
    public Dog getDog() {
        return dog;
    }


    public Cat getCat() {
        return cat;
    }


    public String getName() {
        return name;
    }


    public void setName(String name) {
        this.name = name;
    }


    public Person3(Dog dog, Cat cat) {
        this.dog = dog;
        this.cat = cat;
    }
    
}
